import request from '@/utils/request'


export function pageList(data, pageInfo) {
    return request({
        url: '/enact/table/page',
        method: 'post',
        data,
        pageInfo
    })
}
export function conditionList(data) {
    return request({
        url: '/enact/table/condition-list',
        method: 'post',
        data,
    })
}
export function noPlanList() {
    return request({
        url: '/enact/table/no-plan-list',
        method: 'get',
    })
}

export function add(data) {
    return request({
        url: '/enact/table/add',
        method: 'post',
        data
    })
}
export function edit(data) {
    return request({
        url: '/enact/table/edit',
        method: 'post',
        data
    })
}
export function upgrade(data) {
    return request({
        url: '/enact/table/upgrade',
        method: 'post',
        data
    })
}

export function remove(id) {
    return request({
        url: '/enact/table/delete/'+ id,
        method: 'post',
    })
}
export function detail(id) {
    return request({
        url: '/enact/table/detail/' + id,
        method: 'get',
    })
}
